package com.ruoyi.products.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.productimages.domain.Productimages; // 假设这是你的 Productimages 类

import java.util.List;

/**
 * 商品对象 products
 *
 * @author ruoyi
 * @date 2024-06-30
 */
public class Products extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long productId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String productName;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String productType;

    /** 商品图片集合 */
    private List<Productimages> productImages;

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }

    public void setProductType(String productType)
    {
        this.productType = productType;
    }

    public String getProductType()
    {
        return productType;
    }

    public List<Productimages> getProductImages() {
        return productImages;
    }

    public void setProductImages(List<Productimages> productImages) {
        this.productImages = productImages;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("productName", getProductName())
                .append("productType", getProductType())
                .append("productImages", getProductImages()) // 修改toString方法，加入productImages
                .toString();
    }
}
